﻿<%@ Page Title="Add Student" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.master"
    Inherits="System.Web.Mvc.ViewPage<Eacademy.Domain.Models.AdminSubjectsViewModel>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script src="/content/js/jquery.tokeninput.js" type="text/javascript"></script>
    <link href="/content/css/token-input.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("#tokenize").tokenInput("/admin/subjects/getmentors", {
                hintText: "Type in the name of the mentor",
                noResultsText: "No results",
                searchingText: "Searching...",
                hideEntered: true
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add Subject
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
        Add Subject</h3>
    <% using (Html.BeginForm("Add", "Subjects", FormMethod.Post, new { autocomplete = "off" }))
       {%>
    <div class="forms-elements">
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.SubjectCode)%>
            </div>
            <div class="form-element">
                <div class="textbox-xmedium-form">
                    <%: Html.TextBoxFor(model => model.SubjectCode, new { @class = "textbox-xmedium-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.SubjectCode)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.SubjectName)%>
            </div>
            <div class="form-element">
                <div class="textbox-xmedium-form">
                    <%: Html.TextBoxFor(model => model.SubjectName, new { @class = "textbox-xmedium-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.SubjectName)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.MentorIdList)%>
            </div>
            <div class="form-element">
                <div class="textbox-list">
                     <%: Html.TextBox("mentors",Model.MentorIdList, new { @id = "tokenize" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
            </div>
            <div class="form-element">
                <input type="submit" value="Add Subject" class="button-style"/>
            </div>
        </div>
    </div>
    <% } %>
</asp:Content>
